#include "CommsHandlerAll.h"
#include "PETCommsHandler.h"

extern "C" {
#include <tct.h>
#include <trt.h>
#include <pct.h>
#include <pform.h>
#include <msg.h>
#include <print.h>
#include <fields.h>
#include <comm.h>
#include <ui.h>
#include <stdio.h>
}



PETCommsHandler::PETCommsHandler()
    : SoftPayBaseCommsHandler()
{
}


int PETCommsHandler ::checkStatusPreComms() {
    int ret;

    if (fGetOffline(pobTran)) {
        // do offline here
        errorMessage = CommsHandler::performHostInterface();
        if (errorMessage != NULL)
            ret = ERROR_OCCURRED;
        else
            ret = TRUE;
    } else
        ret = CONTINUE_PROCESS;
    return ret;
}

